import request from '@/utils/request'

// 查询招聘公告职位投递列表
export function listDeliver(query) {
  return request({
    url: '/employee/deliver/list',
    method: 'get',
    params: query
  })
}

// 查询招聘公告职位投递详细
export function getDeliver(id) {
  return request({
    url: '/employee/deliver/' + id,
    method: 'get'
  })
}

// 新增招聘公告职位投递
export function addDeliver(data) {
  return request({
    url: '/employee/deliver',
    method: 'post',
    data: data
  })
}

// 修改招聘公告职位投递
export function updateDeliver(data) {
  return request({
    url: '/employee/deliver',
    method: 'put',
    data: data
  })
}

// 删除招聘公告职位投递
export function delDeliver(id) {
  return request({
    url: '/employee/deliver/' + id,
    method: 'delete'
  })
}
